package View;

import Modelo.Leito;
import Modelo.Quarto;
import Modelo.TabelaQuarto;
import Modelo.TabelaQuartoLeitos;
import java.awt.Color;
import java.util.ArrayList;

/**
 *
 * @author big-gravatai
 */
public class CadQuarto extends javax.swing.JFrame {

    LocQuarto tp;
    Quarto quarto;
    
    /** Creates new form CadQuarto */
    public CadQuarto(LocQuarto q) {
        this.tp = q;
        initComponents();
        this.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH); //Maximiza a tela
        jTbListaDeLeitos.setModel(new TabelaQuartoLeitos());
        jTbListaDeLeitos.setBackground(Color.white);   
        jPnTabelaLeitos.setVisible(true);       
        limparTela();
    }
    
    public CadQuarto(Quarto q){
        //this.tp = q;
        this.quarto = q;
        initComponents();
        this.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH); //Maximiza a tela
        jTbListaDeLeitos.setModel(new TabelaQuartoLeitos());
        jTbListaDeLeitos.setBackground(Color.white);   
        jPnTabelaLeitos.setVisible(true);       
        limparTela();
        mostra();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelPrincipal = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPQuartosLeitos = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jTxtAndar = new javax.swing.JFormattedTextField();
        jLErrMsg = new javax.swing.JLabel();
        jPnTabelaLeitos = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTbListaDeLeitos = new javax.swing.JTable();
        jBtSalvar = new javax.swing.JButton();
        jBtCancelar = new javax.swing.JButton();
        jPnQtdLeitos = new javax.swing.JPanel();
        jTxtQtdLeitos = new javax.swing.JFormattedTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jTxtCodQuarto = new javax.swing.JFormattedTextField();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMnAcoes = new javax.swing.JMenu();
        jMiCadastrar = new javax.swing.JMenuItem();
        jMiSair = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Cadastro de quarto");
        setBackground(new java.awt.Color(255, 255, 255));

        jPanelPrincipal.setBackground(new java.awt.Color(255, 255, 255));
        jPanelPrincipal.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelPrincipal.setPreferredSize(new java.awt.Dimension(1479, 873));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/quarto.jpg"))); // NOI18N

        jPQuartosLeitos.setBackground(new java.awt.Color(255, 255, 255));
        jPQuartosLeitos.setBorder(javax.swing.BorderFactory.createTitledBorder("Quartos e Leitos"));

        jLabel2.setText("Andar:");

        jTxtAndar.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("###"))));
        jTxtAndar.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTxtAndarFocusLost(evt);
            }
        });

        jLErrMsg.setText("Hostipal Reat In Peace");

        jPnTabelaLeitos.setBackground(new java.awt.Color(255, 255, 255));

        jTbListaDeLeitos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTbListaDeLeitos.setGridColor(new java.awt.Color(255, 255, 255));
        jTbListaDeLeitos.setSelectionBackground(new java.awt.Color(204, 204, 204));
        jScrollPane1.setViewportView(jTbListaDeLeitos);

        jBtSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/V.png"))); // NOI18N
        jBtSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtSalvarActionPerformed(evt);
            }
        });

        jBtCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/X.png"))); // NOI18N
        jBtCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPnTabelaLeitosLayout = new javax.swing.GroupLayout(jPnTabelaLeitos);
        jPnTabelaLeitos.setLayout(jPnTabelaLeitosLayout);
        jPnTabelaLeitosLayout.setHorizontalGroup(
            jPnTabelaLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPnTabelaLeitosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPnTabelaLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPnTabelaLeitosLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jBtCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jBtSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPnTabelaLeitosLayout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPnTabelaLeitosLayout.setVerticalGroup(
            jPnTabelaLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPnTabelaLeitosLayout.createSequentialGroup()
                .addContainerGap(24, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPnTabelaLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBtSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPnQtdLeitos.setBackground(new java.awt.Color(255, 255, 255));

        jTxtQtdLeitos.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("###"))));
        jTxtQtdLeitos.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTxtQtdLeitosFocusLost(evt);
            }
        });

        jLabel3.setText("Qtd. Leitos:");

        javax.swing.GroupLayout jPnQtdLeitosLayout = new javax.swing.GroupLayout(jPnQtdLeitos);
        jPnQtdLeitos.setLayout(jPnQtdLeitosLayout);
        jPnQtdLeitosLayout.setHorizontalGroup(
            jPnQtdLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPnQtdLeitosLayout.createSequentialGroup()
                .addComponent(jLabel3)
                .addGap(18, 18, 18)
                .addComponent(jTxtQtdLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 20, Short.MAX_VALUE))
        );
        jPnQtdLeitosLayout.setVerticalGroup(
            jPnQtdLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPnQtdLeitosLayout.createSequentialGroup()
                .addGroup(jPnQtdLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jTxtQtdLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 22, Short.MAX_VALUE))
        );

        jLabel5.setText("Código:");

        jTxtCodQuarto.setBackground(new java.awt.Color(204, 204, 204));
        jTxtCodQuarto.setEditable(false);
        jTxtCodQuarto.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("###"))));
        jTxtCodQuarto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTxtCodQuartoActionPerformed(evt);
            }
        });
        jTxtCodQuarto.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTxtCodQuartoFocusLost(evt);
            }
        });

        javax.swing.GroupLayout jPQuartosLeitosLayout = new javax.swing.GroupLayout(jPQuartosLeitos);
        jPQuartosLeitos.setLayout(jPQuartosLeitosLayout);
        jPQuartosLeitosLayout.setHorizontalGroup(
            jPQuartosLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPQuartosLeitosLayout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addComponent(jLErrMsg, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(347, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPQuartosLeitosLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPQuartosLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPQuartosLeitosLayout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addGap(45, 45, 45)
                        .addComponent(jTxtAndar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPnQtdLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPQuartosLeitosLayout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTxtCodQuarto, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPnTabelaLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33))
        );
        jPQuartosLeitosLayout.setVerticalGroup(
            jPQuartosLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPQuartosLeitosLayout.createSequentialGroup()
                .addContainerGap(18, Short.MAX_VALUE)
                .addGroup(jPQuartosLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTxtCodQuarto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPQuartosLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPQuartosLeitosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTxtAndar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel2))
                    .addComponent(jPnQtdLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPnTabelaLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29)
                .addComponent(jLErrMsg))
        );

        javax.swing.GroupLayout jPanelPrincipalLayout = new javax.swing.GroupLayout(jPanelPrincipal);
        jPanelPrincipal.setLayout(jPanelPrincipalLayout);
        jPanelPrincipalLayout.setHorizontalGroup(
            jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                .addGap(64, 64, 64)
                .addComponent(jLabel1)
                .addGap(180, 180, 180)
                .addComponent(jPQuartosLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(138, Short.MAX_VALUE))
        );
        jPanelPrincipalLayout.setVerticalGroup(
            jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                .addGroup(jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addComponent(jLabel1))
                    .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                        .addGap(193, 193, 193)
                        .addComponent(jPQuartosLeitos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(70, Short.MAX_VALUE))
        );

        jMnAcoes.setText("Ações");

        jMiCadastrar.setText("Cadastrar");
        jMiCadastrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMiCadastrarActionPerformed(evt);
            }
        });
        jMnAcoes.add(jMiCadastrar);

        jMiSair.setText("Sair");
        jMnAcoes.add(jMiSair);

        jMenuBar1.add(jMnAcoes);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1414, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 1394, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 712, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 671, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(30, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTxtAndarFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTxtAndarFocusLost
        if (jTxtQtdLeitos.getText().equals("")) {
            jLErrMsg.setText("Preencha a quantidade de leitos!");
        }
        if (!jTxtAndar.getText().equals("")) {
            gerarQuarto(Integer.parseInt(jTxtAndar.getText()));
        }
    }//GEN-LAST:event_jTxtAndarFocusLost

    private void jTxtQtdLeitosFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTxtQtdLeitosFocusLost
        if (!jTxtAndar.getText().equals("") && !jTxtQtdLeitos.getText().equals("")) {
            gerarLeitos(Integer.parseInt(jTxtQtdLeitos.getText()), jTxtCodQuarto.getText());
            jLErrMsg.setText("Hostipal Reat In Peace");
        } else {
            if (!jTxtAndar.equals("")) {
                jLErrMsg.setText("Andar não preenchido!");
            }
            if (!jTxtQtdLeitos.getText().equals("")) {
                jLErrMsg.setText("Quantidade de Leitos não preenchido!");
            }
        }
    }//GEN-LAST:event_jTxtQtdLeitosFocusLost

    private void jBtSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtSalvarActionPerformed
        cadastrar();
        // TODO add your handling code here:
    }//GEN-LAST:event_jBtSalvarActionPerformed

    private void jBtCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtCancelarActionPerformed

        // TODO add your handling code here:
    }//GEN-LAST:event_jBtCancelarActionPerformed

    private void jMiCadastrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMiCadastrarActionPerformed
        if (!verificaBranco()) {
            return;
        }
       //jLbErro.setText("Produto cadastrado com sucesso.");
       
        cadastrar();
    }//GEN-LAST:event_jMiCadastrarActionPerformed

    private void jTxtCodQuartoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTxtCodQuartoFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jTxtCodQuartoFocusLost

    private void jTxtCodQuartoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTxtCodQuartoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTxtCodQuartoActionPerformed

    public void cadastrar(){
        Quarto q = new Quarto();
        
        q.setAndar(Integer.parseInt(jTxtAndar.getText()));
        
        if (!jTxtCodQuarto.getText().trim().equals(""))
            q.setIdquarto(Integer.parseInt(jTxtCodQuarto.getText()));
        
        q.setQtdLeitos(Integer.parseInt(jTxtQtdLeitos.getText()));
    }
    
    public void gerarQuarto(int andar) {
        /* Selecionar o último quarto cadastrado no andar
        //incrementa o valor do último quarto.
         */
        int novoQuarto = andar * 10;
        novoQuarto += 1;
        //jTxtCodQuarto.setText(novoQuarto + "");
    }

    public void gerarLeitos(int qtdLeitos, String numeroQuarto) {
        if (qtdLeitos <= 25){
        ArrayList<Leito> leitos = new ArrayList<Leito>();
        char alfabeto = 65;
        String novoLeito;
        for (int i = 0; i < qtdLeitos; i++) {
            Leito l = new Leito();
            novoLeito = numeroQuarto;
            novoLeito += alfabeto;
            l.setIdleito(Integer.parseInt(novoLeito));
            l.setQuartoIdquarto(Integer.parseInt(jTxtCodQuarto.getText()));
            leitos.add(l);
            alfabeto += 1;
        }
        limparTabela();
        preencherTabela(leitos);
        }else{
            jLErrMsg.setText("Numero de leito maior que o permitido!\n"
                    + "Numero Máximo de leitos = 25");
            
        }
    }

    public void preencherTabela(ArrayList<Leito> leitos) {
        TabelaQuartoLeitos tabelaTemp = (TabelaQuartoLeitos) jTbListaDeLeitos.getModel();
        for (Leito l : leitos) {
            tabelaTemp.addLeito(l);
        }
        jPnTabelaLeitos.setVisible(true);
    }
    
    public void limparTabela() {
        TabelaQuartoLeitos tabelaTemp = (TabelaQuartoLeitos) jTbListaDeLeitos.getModel();
        tabelaTemp.clearTable();
    }

    public void limparTela() {
        jTxtAndar.setText("");
        jTxtQtdLeitos.setText("");
        jPnTabelaLeitos.setVisible(false);
        jLErrMsg.setText("Hostipal Reat In Peace");
    }
    
    private boolean verificaBranco() {
        if (jTxtAndar.getText().trim().equals("")) {
            jLErrMsg.setText("Campo andar é obrigatorio.");
            return false;
        }

        if (jTxtQtdLeitos.getText().trim().equals("")) {
            jLErrMsg.setText("Campo quantidade de leitos é obrigatorio.");
            return false;
        }

        return true;
    }
    public void mostra(){
        
        jTxtAndar.setText(null);
        jTxtAndar.setText(null);
        jTxtAndar.setText(null);
        jTxtAndar.setText(null);
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBtCancelar;
    private javax.swing.JButton jBtSalvar;
    private javax.swing.JLabel jLErrMsg;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMiCadastrar;
    private javax.swing.JMenuItem jMiSair;
    private javax.swing.JMenu jMnAcoes;
    private javax.swing.JPanel jPQuartosLeitos;
    private javax.swing.JPanel jPanelPrincipal;
    private javax.swing.JPanel jPnQtdLeitos;
    private javax.swing.JPanel jPnTabelaLeitos;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTbListaDeLeitos;
    private javax.swing.JFormattedTextField jTxtAndar;
    private javax.swing.JFormattedTextField jTxtCodQuarto;
    private javax.swing.JFormattedTextField jTxtQtdLeitos;
    // End of variables declaration//GEN-END:variables
}
